<?php
class AppController extends Controller {
	var $components = array ('Auth','Session','Captcha');
	
	function beforeFilter() {
		/*$user = $this->Auth->user();
		$this->loadModel('User');
		$user = $this->User->findById($user['User']['id']);
		
		if (!$this->Acl->check($user['TypeUser']['typeUserName'], $this->params['controller'])) {
			$this->redirect(array('controller' => 'errors','action' => 'index'),null,true);
		}
		*/
	}
	
	function captcha()
    {
        $this->Captcha->render();
    }
}
?>